gpsbabel.git
6 years agoMerge pull request #409 from gpsbabel/no_new_string
Robert Lipe [Wed, 11 Dec 2019 07:11:04 +0000 (01:11 -0600)]
Merge pull request #409 from gpsbabel/no_new_string

Remove remnants of NEW_STRINGS

6 years agoMerge pull request #433 from gpsbabel/cleanups_201912
Robert Lipe [Wed, 11 Dec 2019 03:03:58 +0000 (21:03 -0600)]
Merge pull request #433 from gpsbabel/cleanups_201912

Cleanups: make a gbfreadbuf, move units from defs and into dedicated file, reduce xstrdup,xmalloc use, reduce CString/QString roundtrips, more.

6 years agotweaks for format vectors. (#434)
tsteven4 [Mon, 9 Dec 2019 18:39:58 +0000 (11:39 -0700)]
tweaks for format vectors. (#434)

flush out hiketech capability array.

use copy constructor of ff_vecs_t when creating unified vector list.

6 years agoCleanup train keeps rollin' along
Robert Lipe [Mon, 9 Dec 2019 17:30:31 +0000 (11:30 -0600)]
Cleanup train keeps rollin' along
defs.h: use c++ true and false. Replace macros with constexprs.
gbser_win.cc don't use Windows style TRUE/FALSE.
kml.cc: integration suggestions.
msvc build: use units.h

6 years agoAdd util.h to various build files.
Robert Lipe [Mon, 9 Dec 2019 15:55:43 +0000 (09:55 -0600)]
Add util.h to various build files.

6 years agoMechanically move protos and structs for units.cc from defs.h to units.h
Robert Lipe [Mon, 9 Dec 2019 15:41:57 +0000 (09:41 -0600)]
Mechanically move protos and structs for units.cc from defs.h to units.h

6 years agoA bunch of busy-work in coce that approximarly never is actually run but solely for...
Robert Lipe [Mon, 9 Dec 2019 08:26:50 +0000 (02:26 -0600)]
A bunch of busy-work in coce that approximarly never is actually run but solely for the hope of hushing clang, clion, and codacy.

6 years agoFix ordering in optional altitude test in KML reader
Robert Lipe [Mon, 9 Dec 2019 06:55:31 +0000 (00:55 -0600)]
Fix ordering in optional altitude test in KML reader

6 years agoWarning tweaks in defs for safety in macro expansion.
Robert Lipe [Mon, 9 Dec 2019 05:56:50 +0000 (23:56 -0600)]
Warning tweaks in defs for safety in macro expansion.

6 years agoLargely automated cleanups in NMEA.
Robert Lipe [Mon, 9 Dec 2019 05:55:59 +0000 (23:55 -0600)]
Largely automated cleanups in NMEA.

6 years agoRework KML linestring coordinate reader. About a 21x speedup on a file
Robert Lipe [Mon, 9 Dec 2019 05:49:32 +0000 (23:49 -0600)]
Rework KML linestring coordinate reader. About a 21x speedup on a file
with 38,000 coordinates tuples.

6 years agoMake WAYPT_SET act more like a function after macro expansion.
Robert Lipe [Mon, 9 Dec 2019 01:37:32 +0000 (19:37 -0600)]
Make WAYPT_SET act more like a function after macro expansion.

6 years agoLowranceusr: internal tightening of types, better scope management.
Robert Lipe [Mon, 9 Dec 2019 01:14:09 +0000 (19:14 -0600)]
Lowranceusr: internal tightening of types, better scope management.

6 years agoMake GPX internal promotions/reductions more specific.
Robert Lipe [Mon, 9 Dec 2019 01:11:48 +0000 (19:11 -0600)]
Make GPX internal promotions/reductions more specific.
Automated cleanups courtesy Clion.

6 years agoAdd gbfreadbuf to simplify object storage.
Robert Lipe [Mon, 9 Dec 2019 01:10:19 +0000 (19:10 -0600)]
Add gbfreadbuf to simplify object storage.

6 years agoMake tpo less weird. Rely on xmalloc/xfree way less. Reduce internal copies.
Robert Lipe [Mon, 9 Dec 2019 01:07:30 +0000 (19:07 -0600)]
Make tpo less weird. Rely on xmalloc/xfree way less. Reduce internal copies.

6 years agoIn Teletype, seek over unknown instead of allocating, reading, and tossing.
Robert Lipe [Sun, 8 Dec 2019 05:54:45 +0000 (23:54 -0600)]
In Teletype, seek over unknown instead of allocating, reading, and tossing.

6 years agouse nullptr instead of empty functions (#432)
tsteven4 [Fri, 6 Dec 2019 22:18:13 +0000 (15:18 -0700)]
use nullptr instead of empty functions (#432)

for function pointers passed to route_disp_all, track_disp_all
and ff_vecs_t exit.

6 years agoclean up filter includes. (#431)
tsteven4 [Fri, 6 Dec 2019 20:02:43 +0000 (13:02 -0700)]
clean up filter includes. (#431)

remove obsolete definition of filter_vecs_t.
don't included filterdefs.h in each filters .cc file.
add QVector include to each filters .h file.

6 years agouse QVectors for filter and format arguments. (#430)
tsteven4 [Fri, 6 Dec 2019 17:31:44 +0000 (10:31 -0700)]
use QVectors for filter and format arguments. (#430)

* use QVectors for filter and format arguments.

This includes a work around MSVC 2015 errors C2440, C2664.  See
the conditional code in defs.h.

* restore accidental deletion of include file.

6 years agostandardize arg proccessing loop structure and naming. (#429)
tsteven4 [Mon, 2 Dec 2019 19:34:09 +0000 (12:34 -0700)]
standardize arg proccessing loop structure and naming. (#429)

* standardize arg processing loops in vec handling.

* standardize var naming in arg processing loops.

6 years agousing QStrings in filter and format vecs. (#428)
tsteven4 [Mon, 2 Dec 2019 16:34:28 +0000 (09:34 -0700)]
using QStrings in filter and format vecs. (#428)

This includes:
our format list entry vecs_t,
out filter list entry fl_vecs_t and
our format interface ff_vecs_t.

Fix validation of options supplied with a format or filter.
Previously unknown options were only detected if all given options
were unknown.  Now any unknown option will be reported, irregardless
of any other options supplied.
The behavoir of ignoring unknown options is unchanged, they are ignored
except for the warning.

6 years agoimprove format/filter vector validation. (#427)
tsteven4 [Mon, 2 Dec 2019 01:16:09 +0000 (18:16 -0700)]
improve format/filter vector validation. (#427)

6 years agoMerge pull request #426 from tsteven4/using
tsteven4 [Fri, 29 Nov 2019 15:08:38 +0000 (08:08 -0700)]
Merge pull request #426 from tsteven4/using

clang-tidy modernize-use-using

6 years agodelete some dangling structure-tags.
tsteven4 [Thu, 28 Nov 2019 19:02:57 +0000 (12:02 -0700)]
delete some dangling structure-tags.

6 years agoclang-tidy modernize-use-using.
tsteven4 [Thu, 28 Nov 2019 17:43:40 +0000 (10:43 -0700)]
clang-tidy modernize-use-using.

replace typedef syntax.
this was done by hand.

6 years agoMerge pull request #424 from tsteven4/vec_containers
Robert Lipe [Thu, 28 Nov 2019 04:57:06 +0000 (22:57 -0600)]
Merge pull request #424 from tsteven4/vec_containers

use Qt containers for format/style/filter vecs.

6 years agouse Qt containers for format/style/filter vecs.
tsteven4 [Thu, 21 Nov 2019 16:37:25 +0000 (09:37 -0700)]
use Qt containers for format/style/filter vecs.

6 years agoMerge pull request #423 from tsteven4/clazy-fixes
tsteven4 [Wed, 20 Nov 2019 20:07:51 +0000 (13:07 -0700)]
Merge pull request #423 from tsteven4/clazy-fixes

* fix c++11 range-loop might detach Qt container

clazy 1.6, clazy-range-loop

* fix Missing reference on non-trivial type

clazy 1.6, clazy-function-args-by-ref

6 years agofix Missing reference on non-trivial type
tsteven4 [Wed, 20 Nov 2019 18:32:07 +0000 (11:32 -0700)]
fix Missing reference on non-trivial type

clazy 1.6, clazy-function-args-by-ref

6 years agofix c++11 range-loop might detach Qt container
tsteven4 [Wed, 20 Nov 2019 18:21:05 +0000 (11:21 -0700)]
fix c++11 range-loop might detach Qt container

found with clazy 1.6

6 years agofix format vector consistency issues (#422)
tsteven4 [Wed, 20 Nov 2019 17:57:48 +0000 (10:57 -0700)]
fix format vector consistency issues (#422)

* fix format vector consistency issues.

* fix leaks in sort_and_unify_vecs.

* fix vec init for msvc2015.

* Revert "fix vec init for msvc2015."

This reverts commit 02b85801ee4d1de24101713fbd85c33238da6183.

* Revert "fix leaks in sort_and_unify_vecs."

This reverts commit d634c21f9f7767d198750e61ba426eb7850127a9.

* only validate formats for real types.

6 years agoReplace libusb 0.1 usage with libusb 1.0 (#396)
tsteven4 [Thu, 14 Nov 2019 17:31:36 +0000 (10:31 -0700)]
Replace libusb 0.1 usage with libusb 1.0 (#396)

Replace our modified libusb 0.1.12 with libusb 1.0.22 on macos. On macos we statically link to our inclcuded libusb.
Use libusb 1.0 instead of libusb 0.1 on linux. On linux we dynamically link to a distribution provided libusb, or optionally build without libusb support.

6 years agoupdate Qt to 5.12.6 (#420)
tsteven4 [Wed, 13 Nov 2019 20:10:40 +0000 (13:10 -0700)]
update Qt to 5.12.6 (#420)

6 years agoCorrect Bundle Identifier for macos using recommended reverse (#419)
tsteven4 [Wed, 6 Nov 2019 19:52:47 +0000 (12:52 -0700)]
Correct Bundle Identifier for macos using recommended reverse (#419)

DNS format.

Build a bundle with the cmake flow on macos.

Delete gpsbabelfe script that messed with LD_LIBRARY_PATH and
then executed gpsbabelfe-bin. This file was obsolete, and
it's existence upset Xcode (entitlement file handling).

6 years agoclean up "No newline at end of file" (#418)
tsteven4 [Wed, 30 Oct 2019 15:30:47 +0000 (09:30 -0600)]
clean up "No newline at end of file" (#418)

and delete an empty test file.

6 years agoMerge pull request #410 from gpsbabel/docbook2
GPSBabel [Wed, 30 Oct 2019 07:04:26 +0000 (02:04 -0500)]
Merge pull request #410 from gpsbabel/docbook2

Dev Doc fix: Document Qt, Qmake better.

6 years agoMerge pull request #411 from gpsbabel/docbook3
GPSBabel [Wed, 30 Oct 2019 07:00:49 +0000 (02:00 -0500)]
Merge pull request #411 from gpsbabel/docbook3

Repair inconsistencies in xsl docbook source

6 years agoMerge pull request #413 from gpsbabel/robertlipe-patch-1
GPSBabel [Wed, 30 Oct 2019 06:58:53 +0000 (01:58 -0500)]
Merge pull request #413 from gpsbabel/robertlipe-patch-1

Notes shouldn't be part of this CL

6 years agoMerge pull request #414 from gpsbabel/robertlipe-patch-2
GPSBabel [Wed, 30 Oct 2019 06:58:03 +0000 (01:58 -0500)]
Merge pull request #414 from gpsbabel/robertlipe-patch-2

Delete miniHomer-gps-utc-offset.xml

6 years agoMerge pull request #415 from gpsbabel/robertlipe-patch-3
GPSBabel [Wed, 30 Oct 2019 06:57:23 +0000 (01:57 -0500)]
Merge pull request #415 from gpsbabel/robertlipe-patch-3

Delete miniHomer-gps-utc-offset.xml

6 years agoMerge pull request #416 from gpsbabel/robertlipe-patch-3-1
GPSBabel [Wed, 30 Oct 2019 06:56:55 +0000 (01:56 -0500)]
Merge pull request #416 from gpsbabel/robertlipe-patch-3-1

Delete miniHomer-gps-week-rollover.xml

6 years agoMerge pull request #417 from gpsbabel/docbook5
GPSBabel [Wed, 30 Oct 2019 06:55:49 +0000 (01:55 -0500)]
Merge pull request #417 from gpsbabel/docbook5

Docbook cleanup

6 years agoMerge pull request #395 from gromit1811/fit_write_support
GPSBabel [Wed, 30 Oct 2019 06:53:19 +0000 (01:53 -0500)]
Merge pull request #395 from gromit1811/fit_write_support

Implement FIT writing support

6 years agom241: Document serial port hardware
Robert Lipe [Tue, 29 Oct 2019 02:47:34 +0000 (21:47 -0500)]
m241: Document serial port hardware

Hint that yellow m241 uses SiLabs CP210x. Red m241 is dead to us and the whole company is even more dead.

6 years agoDelete miniHomer-gps-week-rollover.xml
Robert Lipe [Sun, 27 Oct 2019 18:57:27 +0000 (13:57 -0500)]
Delete miniHomer-gps-week-rollover.xml

6 years agoDelete miniHomer-gps-utc-offset.xml
Robert Lipe [Sun, 27 Oct 2019 18:57:17 +0000 (13:57 -0500)]
Delete miniHomer-gps-utc-offset.xml

6 years agoDelete notes
Robert Lipe [Sun, 27 Oct 2019 18:56:29 +0000 (13:56 -0500)]
Delete notes

6 years agoDelete miniHomer-gps-utc-offset.xml
Robert Lipe [Sun, 27 Oct 2019 18:51:57 +0000 (13:51 -0500)]
Delete miniHomer-gps-utc-offset.xml

6 years agoShouldn't be part of 409 commit
Robert Lipe [Sun, 27 Oct 2019 18:50:55 +0000 (13:50 -0500)]
Shouldn't be part of 409 commit

I failed a wrestling match with Github

6 years agoNotes shouldn't be part of this CL
Robert Lipe [Sun, 27 Oct 2019 18:47:42 +0000 (13:47 -0500)]
Notes shouldn't be part of this CL

I failed a wrestling match with Github

6 years agoCleanup of dangling doc files for dead formats
Robert Lipe [Sun, 27 Oct 2019 18:41:39 +0000 (13:41 -0500)]
Cleanup of dangling doc files for dead formats

Formats in deprecated/  don't need live doc.
Reformatted our largest xmldoc files.

6 years agoRepair inconsistencies in xsl docbook source
Robert Lipe [Sun, 27 Oct 2019 08:44:29 +0000 (03:44 -0500)]
Repair inconsistencies in xsl docbook source

6 years agoDev Doc fix: Document Qt, Qmake better.
Robert Lipe [Sun, 27 Oct 2019 08:05:33 +0000 (03:05 -0500)]
Dev Doc fix: Document Qt, Qmake better.

Better enumerate dependencies
Describe Qt Crerator
Improve internal linking
Fix trailing spaces

6 years agoDev Doc fix: Document Qt, Qmake better.
Robert Lipe [Sun, 27 Oct 2019 07:55:55 +0000 (02:55 -0500)]
Dev Doc fix: Document Qt, Qmake better.

Better enumerate dependencies
Describe Qt Crerator
Improve internal linking
Fix trailing spaces

6 years agoRemove remnants of NEW_STRINGS
Robert Lipe [Sun, 27 Oct 2019 04:09:08 +0000 (23:09 -0500)]
Remove remnants of NEW_STRINGS

NEW_STRINGS haven't been new for many years at this point. I'm tired of looking at that code. Most of what's left is in paths never executed or tested anyway. :-/

6 years agoImplement FIT writing support
Martin Buck [Sun, 17 Mar 2019 22:46:54 +0000 (23:46 +0100)]
Implement FIT writing support

Generate FIT courses from tracks+waypoints. Waypoints get mapped to course
points (generic by default, left/right turns if waypoint names contain the
string "left"/"right" or their equivalents in German, French, Spanish,
Italian).

If the original track contains neither time stamps nor speed values,
a fixed speed of 10 km/h gets assigned to the whole course.

Resulting FIT files have been tested and are accepted by a Garmin Edge 130
unit, but are assumed to be usable with any GPS unit supporting FIT.

Track segement markers are ignored at the moment.

6 years agoupdate qt to 5.12.5 (#403)
tsteven4 [Wed, 2 Oct 2019 21:56:08 +0000 (15:56 -0600)]
update qt to 5.12.5 (#403)

6 years agoMerge pull request #400 from jspricke/manpage_xml
GPSBabel [Mon, 23 Sep 2019 16:36:06 +0000 (11:36 -0500)]
Merge pull request #400 from jspricke/manpage_xml

Fix manpage xml

6 years agoMerge pull request #401 from spacelama/master
GPSBabel [Mon, 23 Sep 2019 16:35:04 +0000 (11:35 -0500)]
Merge pull request #401 from spacelama/master

Don't dump garmin_fit from Lezyne "Super Fit" devices just because occasionally the endian field is not 0 or 1, leading to the question if that's an endianness field at all.

6 years agocorrect reference file for garmin_fit lezyne super gps - probably originally converte...
Tim Connors [Sun, 22 Sep 2019 10:36:44 +0000 (20:36 +1000)]
correct reference file for garmin_fit lezyne super gps - probably originally converted using wrong flags

6 years agoThe lezyne "super gps", every 10th ride or so, outputs a .fit file
Tim Connors [Sat, 14 Sep 2019 12:06:06 +0000 (22:06 +1000)]
The lezyne "super gps", every 10th ride or so, outputs a .fit file
that is entirely valid other than a weird non 0/1 endian field.  Don't
dump the data just because of that.

6 years agoFix manpage xml
Jochen Sprickerhof [Tue, 3 Sep 2019 19:06:38 +0000 (21:06 +0200)]
Fix manpage xml

6 years agofix lowranceusr4 writer issues (#376)
tsteven4 [Thu, 29 Aug 2019 15:38:04 +0000 (09:38 -0600)]
fix lowranceusr4 writer issues (#376)

* fixes for lowraneusr writer for versions >= 4.

use fs_chain_find when looking for FS_LOWRANCEUSR4 data.
and check for nullptr to verify FS_LOWRANCEUSR4 data exists.

* using rounding in lowranceusr lat/lon conversions.

This gives as a chance of usr->gpx->usr matching.

Update gpsbabel generated usr reference files for these
rounding differences.

* fix lowranceusr4 writer issues.

when writing embedded UTF-16LE strings in lowranceusr version >=4
don't inlucde BOM.

don't offset returned values from lowranceusr4_jd_from_timestamp
by 12 hours, thus matching the inverse transformation in
lowranceusr4_get_timestamp.

when writing lowranceusr version >=4 trails output the given number
of mysterious attribute bytes, i.e. 0.

This almost enables a gpx -> usr -> gpx test loop, which is included
but commented in lowranceusr.test.

* fixes to enable lowranceusr v4 round trip testing.

use templates for lowranceusr*_find_desc_from_icon_number
and lowranceusr*_find_icon_number_from_desc.

enhance lowranceusr*_find_icon_number_from_desc to
recongnize icon-n where n is an integer as icon number n.
This is necessary for the v4 round trip test.

declare lowranceusr*_find_desc_from_icon_number to be static
to limit visibilty. Drop const return type.

declare lowranceusr4_find_color_from_icon_number_plus_color_index
to be static to limit visiblity.

* fix new lowranceusr memory leak.

6 years agofix minor error in garmin_fit lat/lon conversion. (#398)
tsteven4 [Wed, 28 Aug 2019 18:32:52 +0000 (12:32 -0600)]
fix minor error in garmin_fit lat/lon conversion. (#398)

6 years agoStandardize resource access (#393)
tsteven4 [Sat, 10 Aug 2019 18:03:25 +0000 (12:03 -0600)]
Standardize resource access (#393)

* standardize resource access.

avoid search paths (use :/).
specify extensions.
ok/cancel only on windows.

* fix missing icon for file input in options dialog.

It appears the image was renamed when used on the main window UI
in the inputFileNameBrowseBtn.
The same icon, open.png, is now used on the options dialog for
OPTinFile.
This fixes #392.

6 years agofix interaction between translation and lights. (#390)
tsteven4 [Thu, 8 Aug 2019 13:39:37 +0000 (07:39 -0600)]
fix interaction between translation and lights. (#390)

When using a language other than English the initial painting of
the gui mainwindow showed the placeholder text for the labels next
to the waypoints, routes and tracks check boxes instead of the
lights.  This was issue #389.

6 years agodon't compile unwanted module serial_unix.cc on mac. (#388)
tsteven4 [Wed, 7 Aug 2019 13:37:12 +0000 (07:37 -0600)]
don't compile unwanted module serial_unix.cc on mac. (#388)

* don't compile serial_unix.cc on mac.

* remove unnecessary conditional in serial_unix.cc

File is no longer in SOURCES for mac, so we don't need to use a
conditional to skip the contents on mac.

6 years agoUpdate README.contrib to reference GitHub (#383)
Chris Mayo [Tue, 6 Aug 2019 17:00:24 +0000 (18:00 +0100)]
Update README.contrib to reference GitHub (#383)

6 years agoMerge branch 'master' of https://github.com/gpsbabel/gpsbabel
Robert Lipe [Thu, 1 Aug 2019 06:47:12 +0000 (01:47 -0500)]
Merge branch 'master' of https://github.com/gpsbabel/gpsbabel

6 years agoFix a missed newline after Verion in debug code for Garmin Protocol.
Robert Lipe [Thu, 1 Aug 2019 06:46:30 +0000 (01:46 -0500)]
Fix a missed newline after Verion in debug code for Garmin Protocol.

6 years agoMerge pull request #377 from jspricke/no_makeflags
GPSBabel [Thu, 1 Aug 2019 04:09:36 +0000 (23:09 -0500)]
Merge pull request #377 from jspricke/no_makeflags

Don't pass MAKEFLAGS to $(MAKE)

6 years agoFix Garmin debugging for "funny" characters. Isalnum() prints single byte characters...
Robert Lipe [Thu, 1 Aug 2019 00:06:16 +0000 (19:06 -0500)]
Fix Garmin debugging for "funny" characters. Isalnum() prints single byte characters that aren't ASCII, making funny business in iTerm. Yes, all those should be refactored into a single "print buffer".

6 years agoTry to make the 'resettime' work per
Robert Lipe [Wed, 31 Jul 2019 23:44:09 +0000 (18:44 -0500)]
Try to make the 'resettime' work per
https://github.com/gpsbabel/gpsbabel/issues/350
Debugging shows it's sending a time to my USB Garmin, but since this seems
to be a non-rollover device, the time is borked on mine anyway.

6 years agoDon't pass MAKEFLAGS to $(MAKE)
Jochen Sprickerhof [Fri, 26 Jul 2019 08:49:11 +0000 (10:49 +0200)]
Don't pass MAKEFLAGS to $(MAKE)

make will pass them automatically. Also they are not meant to be
consumed by make as they are stripped:

Thus, if you do ‘make -ks’ then MAKEFLAGS gets the value ‘ks’.

https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html

6 years agoMerge pull request #374 from tsteven4/jeepswarn
GPSBabel [Sat, 13 Jul 2019 02:51:51 +0000 (21:51 -0500)]
Merge pull request #374 from tsteven4/jeepswarn

Fix g++-8 warnings in jeeps.

6 years agoFix g++-8 warnings in jeeps.
tsteven4 [Wed, 10 Jul 2019 22:45:14 +0000 (16:45 -0600)]
Fix g++-8 warnings in jeeps.

6 years agomodify position filter algorithm. (#373)
tsteven4 [Mon, 8 Jul 2019 20:54:46 +0000 (14:54 -0600)]
modify position filter algorithm. (#373)

For routes and tracks, the algorithm is modified to
only remove consecutive points until the distance limit is
exceeded.  This prevents simulataneous removal of points on
an outgoing and return leg, which can lead to gross corruption
of the route/track shape.

A test case that demonstrates the problem with the previous
algorithm is added.

6 years agospelling fixes for GUI (#372)
tsteven4 [Sun, 30 Jun 2019 13:15:17 +0000 (07:15 -0600)]
spelling fixes for GUI (#372)

* clion spelling fixes for GUI.

Care must be taken to not lose translations!

* fix clang tidy performance-unnecessary-value-param

6 years agoGdb string read (#364)
tsteven4 [Fri, 21 Jun 2019 13:54:15 +0000 (07:54 -0600)]
Gdb string read (#364)

* harden gdb reader to long string input.

fix bug in the gdb reader that resulted in file position being lost
if a string was truncated when reading due to the finite buffer size.

fix bug in the gdb reader that could result in data being written outside
the provided buffer.

enhance gdb readers to remove length limit on reading strings.

* whitespace correction.

6 years agoclion spell fixes, and a few cet retirements. (#370)
tsteven4 [Fri, 21 Jun 2019 13:44:52 +0000 (07:44 -0600)]
clion spell fixes, and a few cet retirements. (#370)

* clion spell fixes, and a few cet retirements.

cet retirements were unused.

* more spelling fixes.

6 years agoresharper fixes (#368)
tsteven4 [Tue, 18 Jun 2019 14:33:01 +0000 (08:33 -0600)]
resharper fixes (#368)

* fix "redundant statement", "redundant declaration"

* fix newline at eof.

6 years agoroll Qt to 5.12.4. (#369)
tsteven4 [Mon, 17 Jun 2019 17:18:26 +0000 (11:18 -0600)]
roll Qt to 5.12.4. (#369)

6 years agoremove dependency on glob. (#367)
tsteven4 [Sun, 9 Jun 2019 23:14:36 +0000 (17:14 -0600)]
remove dependency on glob. (#367)

* remove dependency on glob.

and have magproto invoke the rd_deinit function when it uses the
gpx reader (uggh).

* regenerate configure on linux.

6 years agofix potential memory leaks. (#365)
tsteven4 [Thu, 30 May 2019 21:10:53 +0000 (15:10 -0600)]
fix potential memory leaks. (#365)

* fix potential memory leaks.

* fix more memory leaks.

A method to find these is to add -DQT_ASCII_CAST_WARNINGS and
then look for xstrdup in the warnings.

* a few cleanups clazy caught.

6 years agoTrack filter fix (#363)
tsteven4 [Wed, 29 May 2019 22:57:02 +0000 (16:57 -0600)]
Track filter fix (#363)

* Fix compatibility for track filter GUI<->CLI.

Add a week unit for the track filter move option,
in addition to the existing day, hour, minute and second units.

Allow combination of units for track filter move option, e.g.
1w2d3h4m-5s = 1 week + 2 days + 3 hours + 4 minutes - 5 seconds.
This matches historical use, and is expected by the GUI.

Add the week unit to the GUI track filter ui.

Change the limits on the track filter move specs:
week: +/-10000 (unit didn't exit before)
day,hour,minute,second: +/- 100000 (+/-2000 for day before, +/-100 on others).

This resolves #357.
This resolves #358.

* add documentation for track filter move option.

6 years agofix package app booboo. (#366)
tsteven4 [Wed, 29 May 2019 22:12:48 +0000 (16:12 -0600)]
fix package app booboo. (#366)

dmg location was wrong so our attempt to remove any existing
dmg did not work.

6 years agoenable gui to load Qt provided meta catalogs. (#360)
tsteven4 [Wed, 29 May 2019 19:13:53 +0000 (13:13 -0600)]
enable gui to load Qt provided meta catalogs. (#360)

QTranslate::load fails to load a meta catalog if
the absolute file name is given as the filename parameter, and
the directory parameter is omitted.
It succeeds if the file name is provided as the filename parameter
and the directory is provided as the diretory parameter.

This should resolve #359.

6 years agofix stringop-overflow= warning with g++-9. (#362)
tsteven4 [Fri, 24 May 2019 12:12:07 +0000 (06:12 -0600)]
fix stringop-overflow= warning with g++-9. (#362)

Additionally, produce a warning for any conversion errors when
reading XT_TIMET_TIME_MS fields in an xcsv file.

6 years agoFix crash on download from Navin/ZNEX miniHomer (#352)
Konrad Gräfe [Thu, 23 May 2019 14:29:03 +0000 (16:29 +0200)]
Fix crash on download from Navin/ZNEX miniHomer (#352)

This adds the options gps-utc-offset and gps-week-rollover to the
miniHomer driver. By adding them solely to the skytraq driver they were
initialized with nullptr for the miniHomer ultimately leading to a
crash.

Signed-off-by: Konrad Gräfe <konradgraefe@aol.com>
6 years agoupdate Free Software Foundation address. (#354)
tsteven4 [Thu, 23 May 2019 14:08:32 +0000 (08:08 -0600)]
update Free Software Foundation address. (#354)

* update Free Software Foundation address.

* revert strptime fsf address change.

6 years agofix format-overflow= warning with g++-8 in mkshort.cc (#361)
tsteven4 [Thu, 23 May 2019 12:57:43 +0000 (06:57 -0600)]
fix format-overflow= warning with g++-8 in mkshort.cc (#361)

This is Fedora patch 0006-Fix-Wformat-overflow.patch.

6 years agocorrect name of Exec in desktop file. (#353)
tsteven4 [Tue, 14 May 2019 22:50:14 +0000 (16:50 -0600)]
correct name of Exec in desktop file. (#353)

The name of the Exec changed in
https://github.com/gpsbabel/gpsbabel/pull/310

6 years agoFix gbfputcstr when using non UTF-8 encoding. (#348)
tsteven4 [Tue, 14 May 2019 14:06:59 +0000 (08:06 -0600)]
Fix gbfputcstr when using non UTF-8 encoding. (#348)

* Fix gbfputcstr when using non UTF-8 encoding.

This restores gbfputcstr from 75d8ec00f^.
That change could result in implicit conversion of
char* data that was specifically encoded as required for
a format to UTF-16, and then explicitly converted from UTF-16
to UTF-8.  While this was inefficient it could also
result in corruption when the data to be written was encoded
in something other than UTF-8.
For example, the Latin1 encoded 'ö' is '\xf6' will
be converted to the UTF-16 replacement character, and that will
be converter to the UTF-8 replacement character, not the original
character.

This resolves a mystery that was noted in the gdb test where some
strings where corrupted when writing gdb versions 1 and 2.

Instead of using function overloading I deleted the version of
gbfputcstr that accepted a QString to write, forcing the user
to specifically convert the data as appropriate.

* increase accuracy of GPS_Math_Deg_To_Semi.

Use rounding of the calculated floating point value before
conversion to an integer to improve accuracy.
This minimizes
abs(GPS_Math_Semi_to_Deg(GPS_Math_Deg_To_Semi(fpvalue)) - fpvalue).
This allows us do some round trip testing from formats that use
a textual representations of degrees, e.g. gpx, to a binary
format that stores integer represetations of angles in semicircle
units, and back.

It is still possible for round trip differences to occur,
but in all our test cases this hasn't been observed.
The value, the number of decimal places printed for the textual
representation, and the size of floating point variables can
all influence this.

Two GPSBabel generated binary reference files are updated.  All changes
in these files are 1 bit changes in latitude or longitude values as
can be expected from the difference between truncation and rounding.

Two GPSBabel generated gpx reference files are deleted as the source
of the round trip test can be compared to the output now.

A gdb test comparison is now enabled as the round trip results now
match.

* enhance gdb test.

adding a roundtrip test with gdb version 3.

6 years agoMerge pull request #347 from gpsbabel/gpsbabel-patch-3
GPSBabel [Thu, 9 May 2019 21:27:04 +0000 (16:27 -0500)]
Merge pull request #347 from gpsbabel/gpsbabel-patch-3

Create skeletal News

6 years agoDelete newnews
GPSBabel [Mon, 6 May 2019 05:55:50 +0000 (00:55 -0500)]
Delete newnews

6 years agoUpdate NEWS
GPSBabel [Sun, 5 May 2019 15:52:55 +0000 (10:52 -0500)]
Update NEWS

6 years agoCreate skeletal News
GPSBabel [Fri, 3 May 2019 22:48:47 +0000 (17:48 -0500)]
Create skeletal News

6 years agoAdd skeletal NEWS file.
GPSBabel [Fri, 3 May 2019 22:45:57 +0000 (17:45 -0500)]
Add skeletal NEWS file.

6 years agoMerge pull request #346 from tsteven4/r160
GPSBabel [Thu, 2 May 2019 08:26:47 +0000 (03:26 -0500)]
Merge pull request #346 from tsteven4/r160

Roll version number for release 1.6.0.